﻿@model workflowMVC.Models.ChangePasswordModel

@{
    ViewBag.Title = "Đổi mật khẩu";
}

<h2 style="text-align:center">Đổi mật khẩu</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true, "Đổi mật khẩu thất bại do các lỗi sau:", new { style="text-align:center"})

    <table class="ui-widget-content ui-corner-all" style="margin:auto;padding:5px">  
        <tr>
            <td>
                @Html.LabelFor(model => model.OldPassword)
            </td>
            <td>
                @Html.PasswordFor(model => model.OldPassword)
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                @Html.ValidationMessageFor(model => model.OldPassword)
            </td>
        </tr>
        
      
        <tr>
            <td>
                @Html.LabelFor(model => model.NewPassword)
            </td>
            <td>
                @Html.PasswordFor(model => model.NewPassword)
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                @Html.ValidationMessageFor(model => model.NewPassword)
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(model => model.ConfirmPassword)
            </td>
            <td>
                @Html.PasswordFor(model => model.ConfirmPassword)
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                @Html.ValidationMessageFor(model => model.ConfirmPassword)
            </td>
        </tr>        
        
        <tr>
            <td></td>
            <td><input type="submit" value="Tạo mới" /></td>
        </tr>
        
    </table>
}
